package _14综合继承案例_超级玛丽游戏;

public class Role {
    private String name;
    private String imageName;

    //行为：移动
    public void move(){
        System.out.println(name+","+imageName+"正在移动");
    }

    public Role() {
    }

    public Role(String name, String imageName) {
        this.name = name;
        this.imageName = imageName;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getImageName() {
        return imageName;
    }

    public void setImageName(String imageName) {
        this.imageName = imageName;
    }
}
